Skip to content

Conversation

@WillieRuemmele
Copy link
Contributor

What does this PR do?

requires: forcedotcom/agents#212
adds
agent preview start/send/end/sessions
for starting, sending, ending, and listing sessions programmatically

What issues does this PR fix or reference?

@W-21191157@

@WillieRuemmele WillieRuemmele requested a review from a team as a code owner February 6, 2026 19:06
agent.setSessionId('sess-1');
await createCache(agent);
agent.setSessionId('sess-1');
await validatePreviewSession(agent);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: I would prefer to see asserts in these tests.

Updated documentation to clarify that the command lists all known programmatic agent preview sessions and provides more details on usage.
Updated the documentation for starting a programmatic agent preview session, clarifying the use of flags and examples.
Clarified the description of programmatic agent preview sessions and their output.
@EstebanRomero84
Copy link
Contributor

QA Notes

I tested following scenarios:

Command Scenario Expected Result Status
sf agent preview list No sessions in cache Correct message ✅ PASS
List sessions ✅ PASS
sf agent preview start Single agent - single session ✅ PASS
Single agent - multiple sessions ✅ PASS
Multiple agents - single session ✅ PASS
Multiple agents - multiple sessions ✅ PASS
Inactive published agent 404 error ✅ PASS
Published agent ✅ PASS
Authoring bundle ✅ PASS
sf agent preview send Published agent and explicit session-id ✅ PASS
Published agent and cached session-id ✅ PASS
Local agent and explicit session-id ✅ PASS
Local agent and cached session-id ✅ PASS
Mismatch sessionId and agent name Correct message ✅ PASS
Multiple sessions for same agent Correct message ✅ PASS
sf agent preview end Authoring bundle ✅ PASS
Published agent ✅ PASS
Session not found Correct message ✅ PASS
Multiple sessions for an agent Correct message ✅ PASS
Mismatch sessionId and agent name Correct message ✅ PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants